use chrono::{DateTime, Utc};
use serde::Serialize;
use share::core::channel::Channel;
use share::core::device_id::DeviceId;

#[derive(Serialize, Clone)]
pub struct DeviceCandidate {
    custom_device_id: DeviceId,
    device_id: DeviceId,
    channel: Channel,
    create_time: DateTime<Utc>,
}

impl DeviceCandidate {
    pub fn new(custom_device_id: DeviceId, device_id: DeviceId, channel: Channel) -> Self {
        Self {
            custom_device_id,
            device_id,
            channel,
            create_time: Utc::now(),
        }
    }
}
